﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SDT.Admin.ViewModels.EditCommentViewModels>" %>
<%@ Import Namespace="SDT.Lib.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Quản lý bình luận
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Header" runat="server">
   Chi tiết bình luận
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Message" runat="server">
    <%=ViewData["MessageInfo"]!=null? "<p class='perror'>"+Html.Encode(ViewData["MessageInfo"])+"</p>":string.Empty%>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Toolbar" runat="server">
    <td>
        <%= Html.Toolbar("Quay về", "/Comments", "back") %>
        <%= Html.Toolbar("Thêm mới", "/Comments/Create/", "new")%>
	    <%= Html.Toolbar("Sửa", string.Format("/Comments/Edit/{0}", Model.TheComment.ID), "edit")%>
        <%= Html.Toolbar("Xóa", string.Format("/Comments/Delete/{0}", Model.TheComment.ID), "delete")%>
    </td>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%if (ViewData["MessageInfo"] == null)
      { %>
	<fieldset>
		<legend>Thông tin bình luận</legend>
		<table class="admintable">
			<tbody>
			<tr>
				<td class="key">
					Tiêu đề:
				</td>
				<td>
					<%=Html.Encode(Model.TheComment.Title) %>
				</td>
			</tr>
			<tr>
				<td class="key">
					Nội dung:
				</td>
				<td>
					<%= Model.TheComment.CommentContent%>
				</td>
			</tr>
			<tr>
				<td class="key">
					Ngày thêm:
				</td>
				<td>
					<%=Html.Encode(Model.TheComment.CommentDate) %>
				</td>
			</tr>
			<tr>
				<td class="key">
					Trạng thái hiển thị:
				</td>
				<td>
				<%= Model.TheComment.PublishYN == true ? Html.Encode("Đã kích hoạt") : Html.Encode("Chưa kích hoạt")%>
				</td>
			</tr>
		</tbody>
	</table>
	</fieldset>
    <%
  } %>
</asp:Content>
